/**
 * Created with IntelliJ IDEA.
 * Description: 创建一个 int 类型的数组, 元素个数为 100, 并把每个元素依次设置为 1 - 100
 * User: 15085202591
 * Date: 2022-11-04
 * Time: 15:37
 */
public class CreateArray {
    private static void printArray(int[] array){
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
    public static void main(String[] args) {
        int[] array = new int[100];
        for (int i = 1; i <= 100; i++) {
            array[i-1] = i;
        }
        printArray(array);
    }
}
